package cn.shop.transcation.order.entity;

import cn.shop.utils.constant.Constant;
import cn.shop.utils.enums.OrderStatus;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author jzw
 * @since 2021-11-30 09:51
 */
@Data
@Accessors(chain = true)
public class OrderQueryReq {

	private static final long serialVersionUID = 7534481387650147681L;

	/**
	 * 起始时间
	 */
	@DateTimeFormat(pattern = Constant.DATETIME_FORMAT)
	private LocalDateTime startTime;

	/**
	 * 结束时间
	 */
	@DateTimeFormat(pattern = Constant.DATETIME_FORMAT)
	private LocalDateTime endTime;

	/**
	 * 金额起始值
	 */
	private BigDecimal min;

	/**
	 * 金额结束值
	 */
	private BigDecimal max;

	/**
	 * 订单号
	 */
	private Long orderNum;

	/**
	 * 分区名
	 */
	private String partitionName;

	/**
	 * 卖家名
	 */
	private String sellerName;

	/**
	 * 卖家id
	 */
	private String sellerId;

	/**
	 * 商品状态
	 */
	private OrderStatus state;

	/**
	 * 商户编号
	 */
	private Long uid;
	/**
	 * 商户名
	 */
	private String merchantName;

}
